<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>便民信息列表 [{$_total}]</h2>
    </div>
    <div class="cf">
        <div class="fl">
            <a class="btn" href="{:U('add')}">新增便民信息</a>
        </div>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table class="">
            <thead>
            <tr>
                <th>ID</th>
                <th>图片</th>
                <th>标题</th>
                <th>创建时间</th>
                <th>更新时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td><img src="{$vo.thumb}" alt="" style="width: 200px;height:200px;"></td>
                    <td>{$vo.title}</td>
                    <td>{:date('Y-m-d H:i:s',$vo['add_time'])}</td>
                    <td>{:date('Y-m-d H:i:s',$vo['update_time'])}</td>
                    <td>
                        <a href="{:U('edit?id='.$vo['id'])}">编辑</a>
                        <a href="{:U('delete?id='.$vo['id'])}" class="confirm ajax-get">删除</a>
                    </td>
                </tr>
            </volist> <else />
                <td colspan="4" class="text-center">aOh! 暂时还没有内容!</td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">{$_page}</div>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Information/index')}');
    </script>
</block>
